package com.czk.stream;

import java.util.stream.Stream;
/**
 * 
 * @author LENOVO
 * map映射转换，传递function<t s>转换型函数式接口
 */
public class Stream_map {
	public static void main(String[] args) {
		Stream<String> of = Stream.of("1","2","3");
		//将string转换为integer
		of.map(Integer::parseInt).forEach(System.out::println);
	}
}
